package com.huluobo.a2109kotlinshopping.utils

import android.media.Image
import android.widget.ImageView
import androidx.databinding.BindingAdapter

/**
 *  Created by LC on 2024/1/13.
 */
class ImageBindAdapter {
    companion object {
        @BindingAdapter("bindImageUrl")
        @JvmStatic
        fun loadImage(view: ImageView, url: String?) {
            if (url!=null){
                ImageUtils.loadImage(view.context, url, view)
            }
        }
    }
}